package com.open.pokergames.base.fragment;

import android.content.Context;

import androidx.annotation.NonNull;

import org.greenrobot.eventbus.EventBus;

import cn.sinothk.hussars.parent.BaseFragment;

public abstract class EventBusBaseFragment extends BaseFragment {

    @Override
    public void onDestroy() {
        super.onDestroy();

        EventBus.getDefault().unregister(this);
    }

    @Override
    public void onAttach(@NonNull Context context) {
        super.onAttach(context);
        EventBus.getDefault().register(this);
    }
}
